const App = getApp();

Component({
  options: {
    addGlobalClass: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    pageName:String,
    showIcon:{
      type:Boolean,
      value:true
    },
    bgColor:{
      type: String,
      value: "#fff"
    },
    userType:{
      type: String,
      value: "2"
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    navTop:'',
    iconColor:'',
    navHeight:'60'
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navHeight: App.globalData.navHeight,
        navTop: App.globalData.navTop
      })
     }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    //返回
    navBack(){
      wx.navigateBack();
    }
  }
})